package a.f.c;

import a.c.bb;
import a.c.e;
import a.c.k;
import a.c.w;
import a.d.u;
import a.f.o;
import a.f.wc;

import java.awt.*;
import java.awt.geom.Rectangle2D;

public class j
  implements g
{
  private Object a;
  private int b;
  private int c;
  private int d;
  private int e;
  private boolean f;
  public static boolean g;
  
  public j()
  {
    this(i.d);
  }
  
  public j(Insets paramInsets)
  {
    this(i.d, paramInsets);
  }
  
  public j(Object paramObject)
  {
    this.a = paramObject;
    this.b = (this.c = this.d = this.e = 15);
  }
  
  public j(Object paramObject, Insets paramInsets)
  {
    this.a = paramObject;
    this.b = paramInsets.top;
    this.c = paramInsets.bottom;
    this.d = paramInsets.left;
    this.e = paramInsets.right;
  }
  
  public boolean a()
  {
    return this.f;
  }
  
  public void a(boolean paramBoolean)
  {
    this.f = paramBoolean;
  }
  
  public Rectangle2D a(o paramo, e parame, bb parambb)
  {
    Rectangle2D localRectangle2D = wc.a(paramo, paramo.v(), paramo.w(), a());
    return a(paramo, parame, parambb, localRectangle2D);
  }
  
  protected Rectangle2D a(o paramo, e parame, bb parambb, Rectangle2D paramRectangle2D)
  {
    boolean bool = h.j;
    double d1 = this.b;
    double d2 = this.c;
    double d3 = this.e;
    double d4 = this.d;
    if (this.a != null)
    {
      localObject = paramo.c(this.a);
      if ((bool) || (localObject != null))
      {
        u localu = u.a(((k)localObject).get(parame));
        if (!bool)
        {
          if (localu != null)
          {
            d1 = localu.b;
            d2 = localu.d;
            d4 = localu.c;
          }
        }
        else {
          d3 = localu.e;
        }
      }
    }
    Object localObject = new Rectangle2D.Double();
    ((Rectangle2D.Double)localObject).setFrame(paramRectangle2D.getX() - d4, paramRectangle2D.getY() - d1, paramRectangle2D.getWidth() + d4 + d3, paramRectangle2D.getHeight() + d1 + d2);
    return localObject;
  }
  
  protected Rectangle2D a(o paramo, bb parambb)
  {
    boolean bool2 = h.j;
    boolean bool1 = h.i;
    if (!bool2) {
      if (parambb.isEmpty()) {
        return new Rectangle2D.Double(0.0D, 0.0D, 0.0D, 0.0D);
      }
    }
    w localw = parambb.l();
    e locale = parambb.m();
    Rectangle2D.Double localDouble1 = new Rectangle2D.Double(paramo.p(locale), paramo.q(locale), paramo.s(locale), paramo.t(locale));
    Rectangle2D.Double localDouble2 = new Rectangle2D.Double(localDouble1.x, localDouble1.y, localDouble1.width, localDouble1.height);
    localw.f();
    if (localw.e())
    {
      locale = localw.d();
      localDouble1.x = paramo.p(locale);
      localDouble1.y = paramo.q(locale);
      localDouble1.width = paramo.s(locale);
      localDouble1.height = paramo.t(locale);
    }
    while (bool2)
    {
      if (!bool2)
      {
        if (bool1) {
          break label209;
        }
        localDouble2.add(localDouble1);
        localw.f();
      }
      if (!bool1) {
        break;
      }
    }
    label209:
    return localDouble2;
  }
  
  public void a(Insets paramInsets)
  {
    this.b = paramInsets.top;
    this.d = paramInsets.left;
    this.c = paramInsets.bottom;
    this.e = paramInsets.right;
  }
  
  public Insets b()
  {
    return new Insets(this.b, this.d, this.c, this.e);
  }
  
  public void a(Object paramObject)
  {
    this.a = paramObject;
  }
  
  public Object c()
  {
    return this.a;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.c.j

 * JD-Core Version:    0.7.0.1

 */